package com.tiger.project.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tiger.project.mapper.PayInfoEnclosureMapper;
import com.tiger.project.domain.PayInfoEnclosure;
import com.tiger.project.service.IPayInfoEnclosureService;

/**
 * 缴费/到账 附件Service业务层处理
 *
 * @author standard
 * @date 2022-12-08
 */
@Service
public class PayInfoEnclosureServiceImpl implements IPayInfoEnclosureService {

    @Autowired
    private PayInfoEnclosureMapper payInfoEnclosureMapper;

    /**
     * 查询缴费/到账 附件
     *
     * @param id 缴费/到账 附件主键
     * @return 缴费/到账 附件
     */
    @Override
    public PayInfoEnclosure selectPayInfoEnclosureById(Long id) {
        return payInfoEnclosureMapper.selectPayInfoEnclosureById(id);
    }

    /**
     * 查询缴费/到账 附件列表
     *
     * @param payInfoEnclosure 缴费/到账 附件
     * @return 缴费/到账 附件
     */
    @Override
    public List<PayInfoEnclosure> selectPayInfoEnclosureList(PayInfoEnclosure payInfoEnclosure) {
        return payInfoEnclosureMapper.selectPayInfoEnclosureList(payInfoEnclosure);
    }

    /**
     * 新增缴费/到账 附件
     *
     * @param payInfoEnclosure 缴费/到账 附件
     * @return 结果
     */
    @Override
    public int insertPayInfoEnclosure(PayInfoEnclosure payInfoEnclosure) {
        return payInfoEnclosureMapper.insertPayInfoEnclosure(payInfoEnclosure);
    }

    /**
     * 修改缴费/到账 附件
     *
     * @param payInfoEnclosure 缴费/到账 附件
     * @return 结果
     */
    @Override
    public int updatePayInfoEnclosure(PayInfoEnclosure payInfoEnclosure) {
        return payInfoEnclosureMapper.updatePayInfoEnclosure(payInfoEnclosure);
    }

    /**
     * 批量删除缴费/到账 附件
     *
     * @param ids 需要删除的缴费/到账 附件主键
     * @return 结果
     */
    @Override
    public int deletePayInfoEnclosureByIds(Long[] ids) {
        return payInfoEnclosureMapper.deletePayInfoEnclosureByIds(ids);
    }

    /**
     * 删除缴费/到账 附件信息
     *
     * @param id 缴费/到账 附件主键
     * @return 结果
     */
    @Override
    public int deletePayInfoEnclosureById(Long id) {
        return payInfoEnclosureMapper.deletePayInfoEnclosureById(id);
    }

}
